<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增工作提醒')" />
	<th:block th:include="include :: select2-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-ncWorkNotice-add">

		<!--<div class="form-group">
            <label class="col-sm-3 control-label">工作名称：</label>
            <div class="col-sm-8">
                <input id="worckNoticeName" name="worckNoticeName" class="form-control" type="text">
            </div>
        </div>-->
		<div class="form-group">
			<label class="col-sm-3 control-label">工作名称</label>  <!--： 1：消毒 2：饲喂 3：挤奶：-->
			<div class="col-sm-8">
				<select name="workType" class="form-control m-b" th:with="type=${@dict.getType('cow_workType')}">
					<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" ></option>

				</select>
				<!--<input id="workType" name="workType" class="form-control" type="text">-->
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">工作内容：</label>
			<div class="col-sm-8">
				<input id="content" name="content" class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">时间点：</label>
			<div class="col-sm-8">
				<input id="time" name="time" class="form-control" type="text">
			</div>
		</div>

		<!--<div class="form-group">
            <label class="col-sm-3 control-label">提醒类型： 1:牛舍 2：鸡舍：</label>
            <div class="col-sm-8">
                <input id="noticeType" name="noticeType" class="form-control" type="text">
            </div>
        </div>-->

		<div class="form-group">
			<label class="col-sm-3 control-label">循环周期(天)：</label>
			<div class="col-sm-8">
				<input id="cycleDays" name="cycleDays" class="form-control" type="number">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">日期：</label>
			<div class="col-sm-8">
				<input id="createTime" data-format="yyyy-MM-dd HH:mm:ss" data-type="datetime" required name="createTime" placeholder="请选择时间"
					   th:value="*{#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text" th:class="time-input" >

				<!--<input id="createTime" name="createTime" class="form-control" type="text">-->
			</div>
		</div>
		<div class="form-group hide">
			<label class="col-sm-3 control-label">提醒类型： 1:牛舍 2：鸡舍：</label>
			<div class="col-sm-8">
				<input id="noticeType" name="noticeType" class="form-control" value="2" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">备注：</label>
			<div class="col-sm-8">
				<textarea id="remark" name="remark" class="form-control" type="text" rows="4"> </textarea>
			</div>
		</div>
	</form>
</div>
<div th:include="include::footer"></div>
<th:block th:include="include :: select2-js" />
<script type="text/javascript">
    var prefix = ctx + "system/ncChickenWorkNotice"
    $("#form-ncWorkNotice-add").validate({
        rules:{
            xxxx:{
                required:true,
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-ncWorkNotice-add').serialize());
        }
    }
</script>
</body>
</html>

